﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Admin3000.Backend.Api.Migrations
{
    public partial class 上传文件实体增加内容类型属性 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "ContentType",
                table: "UploadFileInfo",
                type: "text",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "CreatedTime", "UpdatedTime" },
                values: new object[] { new DateTime(2021, 8, 8, 16, 12, 30, 556, DateTimeKind.Local).AddTicks(2833), new DateTime(2021, 8, 8, 16, 12, 30, 557, DateTimeKind.Local).AddTicks(4761) });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ContentType",
                table: "UploadFileInfo");

            migrationBuilder.UpdateData(
                table: "Users",
                keyColumn: "Id",
                keyValue: 1,
                columns: new[] { "CreatedTime", "UpdatedTime" },
                values: new object[] { new DateTime(2021, 8, 7, 16, 55, 55, 622, DateTimeKind.Local).AddTicks(3500), new DateTime(2021, 8, 7, 16, 55, 55, 623, DateTimeKind.Local).AddTicks(5252) });
        }
    }
}
